package cui.xin.studentcourse.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cui.xin.studentcourse.dto.MessageDto;
import cui.xin.studentcourse.mapper.MessageMapper;
import cui.xin.studentcourse.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 公告和细腻
 * </p>
 *
 * @author palpitate_yzr
 * @since 2022年11月16日17:07:54
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, MessageDto> implements MessageService {

    @Autowired
    private MessageMapper messageMapper;

    /**
     * 查看公告
     * @return
     */
    @Override
    public List<MessageDto> getNotice() {
        return messageMapper.getNotice();
    }
    /**
     * 查看消息
     * @return
     */
    @Override
    public List<MessageDto> getMessage() {
        return messageMapper.getMessage();
    }
}
